﻿using Che.Domain.Entity.EPlayers;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Che.Domain.Entity.ECountry
{
    [SugarTable("Countries")]
    public class Country
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        [SugarColumn(Length = 100)]
        public string Name { get; set; }

        [SugarColumn(Length = 10)]
        public string Code { get; set; } // 如 "CN", "US"

        // 导航属性（一对多：一个国家有多个球员）
      //  [Navigate(NavigateType.OneToMany, nameof(Entity.EPlayers.Players.CountryId))]
     //   public List<Entity.EPlayers.Players> Players { get; set; } = new List<Entity.EPlayers.Players>();
    }
}
